package com.xuecheng.manage_cms.controller;

import com.xuecheng.api.cms.SysDicthinaryControllerApi;
import com.xuecheng.framework.domain.system.SysDictionary;
import com.xuecheng.manage_cms.service.PageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class SysDicthinaryController implements SysDicthinaryControllerApi {

    @Autowired
    private PageService service;

    @Override
    @GetMapping("/sys/dictionary/get/{type}")
    public SysDictionary getByType(@PathVariable("type") String type) {
        return service.findList(type);
    }
}
